"""
@Time ： 2021/10/22 18:01
@Auth ： ChenZhangKun
"""


class Game(object):
    # 历史最高分
    top_score = 0

    # 内置方法
    def __init__(self, player_name):
        self.player_name = player_name

    @staticmethod
    def show_help():
        print("这里是帮助信息")

    @classmethod
    def show_top_score(cls):
        print("历史记录最高分 %d" % cls.top_score)

    def start_game(self):
        print("%s开始游戏了、、、" % self.player_name)

    def set_score(self, score):
        if score > Game.top_score:
            Game.top_score = score


play1 = Game("杜兰特")
play1.set_score(90)
play2 = Game("詹姆斯")
play2.set_score(91)

Game.show_help()
play1.start_game()
play2.start_game()
print(Game.top_score)
